package com.jhh.pay.center.dao;

import com.jhh.pay.center.model.PayChannelCfg;
import com.jhh.pay.center.model.PayChannelCfgValuePair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/5
 */
@Mapper
public interface PayChannelCfgMapper {
    long insert(PayChannelCfg cfg);

    long update(PayChannelCfg cfg);

    PayChannelCfg get(@Param("channelId") int channelId, @Param("version") String version);

    Collection<PayChannelCfgValuePair> gets(@Param("channelId") int channelId);
}
